package com.fulihui.information.core.repository;

import com.fulihui.information.dal.dataobj.InfoContentComments;
import com.fulihui.information.dal.dataobj.InfoContentCommentsExample;
import com.fulihui.information.dto.InfoContentCommentsDTO;

import java.util.List;

/**
 * Created by LM on 2017/4/9.
 */
public interface ContentCommentsRepository {

    boolean create(InfoContentComments infoContentComments);

    boolean update(InfoContentComments infoContentComments);

    List<InfoContentCommentsDTO> queryPage(InfoContentCommentsExample example);

    long countByExample(InfoContentCommentsExample example);

    boolean praiseTotalAdd(String commentsId);

    boolean replyTotalAdd(String commentsId);

    InfoContentCommentsDTO selectByPrimaryKey(String id);

}
